import requests
from parsel import Selector
result=requests.get("http://www.techlabplt.com:8080/BD-PC/priceList")
selector=Selector(result.text)
foodnames=selector.xpath('// *[ @ id = "tableBody" ] / tr/ td[ 3 ]')
i=1
for foodname in foodnames:
    text = foodname.xpath ('.//text()').re('.*菜.*')
    if len(text)!=0:
      print(text[0],end=' ')
      aveprice=selector.xpath('// *[ @ id = "tableBody" ] / tr['+str(i)+']/ td[ 5 ]//text()').get()
      print(aveprice)
    i+=1
